x86: streamline hypercall_create_continuation()
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Jan 2015 16:25:55 +0000 (17:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Jan 2015 16:25:55 +0000 (17:25 +0100)
commitc109909720fa49cc1bb71c729fd5a14e17163306
tree547e1539edec09215d6c00daa5ef381c0cf8dc43
parenta3c0d914b7cbf330042671a7220d990d99f1e4a7
x86: streamline hypercall_create_continuation()

- drop clearing of excessive multicall arguments in compat case (no
  longer needed now that hypercall_xlat_continuation() only checks the
  actual arguments)
- latch current into a local variable
- use the cached value of hvm_guest_x86_mode() instead of re-executing
  it
- scope restrict "regs"
- while at it, convert the remaining two argument checking BUG_ON()s in
  hypercall_xlat_continuation() to ASSERT()s

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c